import { D3Lit } from "./d3-example-lit.mjs";
import { D3Ng } from "./d3-example.effect.mjs";

export { default, modRoutingEP } from "./index.js";

/**
 * @param {ng.IModule} app
 */
const initD3Example = (app) => {
  void app.component(camelCase("d3-ng"), D3Ng);
};

/**
 * @param {ng.IModule} app
 */
function EpEffect(app) {
  initD3Example(app);
  // register customElement
  if (window.customElements.get("d3-lit") === undefined) {
    window.customElements.define("d3-lit", D3Lit);
  }
}
// __App__ && initD3Example(__App__);

export { EpEffect };
